package com.cqvie.controller;

public class RequestMessage {
	public String id; //消息的唯一编号
	public String proc; //消息处理方法(类名_方法名)
	public String data; //json格式   test commit
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	
	public String getProcClassName()
	{
		System.out.println(proc.split("_")[0]);
		return proc.split("_")[0];
	}
	
	public String getMethodName()
	{
		return proc.split("_")[1];		
	}
	
	public String getProc(){
		return proc;
	}
	@Override
	public String toString() {
		return "RequestMessage [id=" + id + ", proc=" + proc + ", data=" + data
				+ "]";
	}
}
